package com.lj.service.Impl;

import com.lj.mapper.PclientMapper;
import com.lj.pojo.ClientProjectljKey;
import com.lj.pojo.Pclient;
import com.lj.service.PclientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PclientServiceImpl implements PclientService {
    @Autowired
    PclientMapper pclientMapper;
    @Override
    public List<Pclient> select(String id) {
        return pclientMapper.selectPclient(id);
    }

    @Override
    public int update(String clientId, String clientPassword, String clientName, String clientSex, String clientPhone) {
        return pclientMapper.updatePclient(clientId,clientPassword,clientName,clientSex,clientPhone);
    }

    @Override
    public List<ClientProjectljKey> selectProject(String id) {
        return pclientMapper.selectProject(id);
    }
}
